<?php
include_once('global.php');
$sql="select * from p_newsbase as a, p_newscontent as b where a.id=b.nid and a.id='$_GET[id]'";
$query=$db->query($sql);
$row=$db->fetch_array($query);
$click=$row[click]+1;
$db->query("update `p_newscontent` set click='$click'  where nid='$row[id]'");
if($row[name]==NULL){
	$row[name]=" ";
}
if($row[phone]==NULL){
	$row[phone]=" ";
}
if($row[qq]==NULL){
	$row[qq]=" ";
}
if($row[other]==NULL){
	$row[other]=" ";
}
echo $row[name]."&".$row[phone]."&".$row[qq]."&".$row[other];

?>